Corrected ajax to allow users to sign in (was blocking the redirect)

I have tweaked this in the current ajax (I switched to what I guessed the post would be).  This will 1000% need more work as I am unsure as to whether the post for an answer will work anymore.

I am going to correct this immediately.

When you merge this make sure to install this:

https://github.com/jonleighton/poltergeist

required on your mac for the JS testing (so you don't need FIREFOX).  HEADLESS BROWSER FTW.