bugfix for login