Adds XHR for login form