validator for signup page