Added javascript validation for the sign up form