Added session checking decorator to main py file