Html5 formhandler with pattern and ajax validation