Fixed PTP: Didn't actually fix shit :X

No idea how it was possible that this came through my testing.

added better handling for ptp's ajax login

Also fixed a couple of spelling errors

This doesn't fix the cookies not getting received, which appears to be a different issue occurring on multiple sites.