 else {
                                        loginError.innerHTML = "Invalid UserName or Password.";
                                    }
                                },
                                error: function (xhr) {
                                    if (xhr.status === 404) {
                                        loginError.innerHTML = "Not Found: " + loginObject.submitUrl;
                                    }
                                    else if (xhr.status === 401 || xhr.status