Bugfix to Users::login