bugfix with login