changed validation for avatar