Bugfix for login;