Wrote login and logout views