validation of reg form