Fix headers for mlogin routine