A person enlisted under may be discharged at any time by the President, or otherwise according to law.section 518 of this title