public static void validateLogin(String login) throws TechnicalException {
        if (login == null || login.isEmpty() || login.length() > LOGIN_SIZE) {
            throw new TechnicalException(LOGIN_ERROR_MSG);
        }
        String regex = "[\\S]{4,}";
        Pattern p = Pattern.compile(regex);
        Matcher m = p.matcher(login);
        if (! m.matches()) {
            throw new TechnicalException(LOGIN_ERROR_MSG);
        }
    }