This is actually weird...
The <form> tag of the login for did not have name and id. Providing both fixed the issue.