Adding client-side password validation