Adding client side validation to password