refactored login view

made some major changes