added avatar attribute to user model