fix login status when using empty password