Added the login and logout controllers