on ajax login changes to logout, and added jasmine