public static void validatePassword(String password) throws TechnicalException {
        if (password == null || password.isEmpty() || password.length() > PASSWORD_SIZE) {
            throw new TechnicalException(PASSWORD_ERROR_MSG);
        }
        String regex = "[\\w]{4,}";
        Pattern p = Pattern.compile(regex);
        Matcher m = p.matcher(password);
        if (! m.matches()) {
            throw new TechnicalException(PASSWORD_ERROR_MSG);
        }
    }