bugfix to login