Password validation with specification

The following example will validate a password field using some custom specifications. Feel free to alter use and form at codepen: