added validation for registration user