public static Credentials Create(string mail, string password)
        {
            var credentials = new Credentials();

            if (!MailValidation.IsValid(mail))
            {
                throw UserException.InvalidMailException(mail);
            }

            if (!credentials.IsPasswordValid(password))
            {
                throw UserException.InvalidPasswordException(password);
            }

            credentials.Mail      = mail;
            credentials.Password  = password;
            credentials.HashedPwd = HashingEncryption.EncryptWithBCrypt(password);

            return(credentials);
        }