Now makes a call to the server when user logs out.