Fix posting from client, detecting whether login was successful