fixed timing issues by making authenticate sleep for 4 seconds.  Problem seems to have been created by quicker page loads since I've disabledimages.