Fixed login and logout views