/// <summary>
        /// Validates the new user.
        /// </summary>
        /// <param name="username">The username.</param>
        /// <param name="newPassword">The new password.</param>
        /// <returns>AccessToken.</returns>
        /// <exception cref="System.ApplicationException">Data not found.</exception>
        public static AccessToken ValidateNewUser(string username, string newPassword)
        {
            // check for new user
            if (1 == UserProfileAccessor.FindUserByUsernameAndPassword(username, "NEWUSER"))
            {
                UserProfileAccessor.SetPasswordForUsername(username, "NEWUSER", newPassword.HashSha256());
            }
            else
            {
                throw new ApplicationException("Data not found.");
            }

            return(ValidateExistingUser(username, newPassword));
        }