Added validation for user avatar