Added login view and some redirects.