Added xhr to login form on Index page