form to validator