Server-side: login fix