Started work on getting user to logout through ajax request. Bug when trying to login again after log out