still some errors on avatar upload