Adding events hooks to update avatar at login