added checks for sign up and added new method to globals createUser()