added login and logout views