protect pages if user deleted