added HTML5 pattern checking of lowercase and underscores