Added validation of registration!