replace deprecated validation annotations in user class  (MinLength --> Length)