fixing notice warning when not logged in