LoginController modified to test server-side easier