Added the session checker to deny access to users not logged in.