fixed error where notifications were being checked on not logged in user