public string AccountLoginRequest(string username, string password)
        {
            BasicResponse loginResponse = new BasicResponse();

            if (RestUtilities.GetSessionUsername(Session) == null)
            {
                // Initially, we are not authenticated yet
                Session["Authenticated"] = false;

                AccountLoginRequestProcessor loginProcessor =
                    new AccountLoginRequestProcessor(username, password);

                if (loginProcessor.ProcessRequest(
                        ApplicationConstants.CONNECTION_STRING,
                        this.Application,
                        out loginResponse.result))
                {
                    Session["Authenticated"] = true;
                    Session["AccountId"]     = loginProcessor.AccountID;
                    Session["OpsLevel"]      = loginProcessor.OpsLevel;
                    Session["EmailAddress"]  = loginProcessor.EmailAddress;
                    Session["CharacterIDs"]  = loginProcessor.AccountCharacterIDs;
                    Session["Username"]      = username;

                    loginResponse.result = SuccessMessages.GENERAL_SUCCESS;
                }
            }
            else
            {
                loginResponse.result = ErrorMessages.ALREADY_LOGGED_IN;
            }

            return(JSONUtilities.SerializeJSONResponse <BasicResponse>(loginResponse));
        }