Cleanup AJAX, things are smooth.
For whatever reason the /login url on flask is reserved for some default thing...