Added login and logout controllers