session checking functionality added to website