Added login and logout controller