fix some bugs
Verify user can upload avatar