refactoring omniauth login to a login method