added login view and templates