added validation for sign up form