Minor fixes to the login service