add login view and template and logout view