Got rid of old function calls for logout that were causing some small issues.