Form JS, validator, rerouting, bug