Created the auth_helper that contains the checkSession method - available for all controllers, avoided DRY principle.