refactored our login view