public async Task <bool> ValidateCredentialsAsync(string email, string password)
        {
            if (password.Length > _passwordSetting.PasswordMaxLength)
            {
                return(false);
            }

            var user = await _userMongoDBRepository.FindByEmailAsync(email);

            if (user != null)
            {
                if (_passwordService.CompareHash(password, user.Password, user.Salt))
                {
                    return(true);
                }
            }

            return(false);
        }