logging the user off on any errors after logging in
some changes in tests and response