Added working login view code to bottom for question purposes