add check for COMMON_HOSTNAME length