fixed error JS form validator on some places