Added Validation for regitration