Put authenticate in ajax post