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