Fixed a bug in the login