Added login view script to index file.
Created login view and initial logic. Login view hides login form on successful login.