security on page reload fix