Ajax Working along with Login Template