Fixed regex bug in form field validation