validation on reg page