Added a simulated login/logout on the server-side and modified authService.js to call it.