The oath of an officer is to the Constitution. The enlisted oath contains the phrase ~and to the President of the US and the officers appointed above me~. The officer's oath does not. However of course the President is validly in office in accordance w the Constitution.