How to give the validations to password?