handle case when logged in user's profile ahs not been saved
fix potential for NPE