Added login and sign up functions