addimg more validation to register