Moved clearing the auth token to the success callback for the $http call...

... to logout.