ajax post to checkin almost working