some optimization for page load time when checking usernames (cookie investigation)