Added login and logout and sign up functionality