fixed an issue where the logged in or logged out notices were not appearing correctly