added validation to the signup form