add js ajax user auth