small refactor of login