added the last validation on registration