Fixes #7587 - Adds client-side password validation.