Added bugfix for login.