base validation on registretion form