Fixed the sign up and log in functions.