Added ajax capabilities and removed unwanted code from login jsps