Added as check for session data so people cant go to pages simply by changing url.