ajax login on the way