added validation for register