ajax checkin post working correctly