Move the loading of wordpress further into the code and use the Auth class to see if we should load it.