add validation for userinfo