Not using user.profilePath in  as user might be null or undefined.