Form validator in JS with simple AJAX call upon completion.