Added Session Checking

- Added code to check to see if the session is still valid and redirect
the the user if it is not