Added Alerts and Ajax Login