Added login and logout so GET requests are protected