Fixed "hasErrors" was true even if the form was not submitted