started to refactor loginUser