Added login/signup and logout functionality