adds more validation to avatar, size and type