Fixed the way the authentication API receives POST data.