Fixed a login-bug