How to fix that error on your prestashop 1.5.6.2 ?
modified AJAX request in file so it directs same place as form.
In /themes/default/authentication.tpl about line 97 there was line:
url: baseUri,
changed it to:
url: baseUri + 'index.php?controller=authentication',
In /themes/default/authentication.tpl about line 97 there was line:
url: baseUri,
changed it to:
url: baseUri + 'index.php?controller=authentication',