Fixed Login

the issue was that the callback for the ajax call was undefined