Some fixes for the POST auth code based on the client sides tests