signin with 2 ajax calls in one