fixed a minor bug with the login status