Added proper user cookie session checks on necessary pages