Fixed issues with multiple attempts to authorize in one page load