filter for checking session values before loading