registration form properly restricts and requires input