fixed validation form bug