Fixed: submitted when previous error was not checked onsubmit
Fix for regexp