added more logging to uploading an avatar