You can include a validation pattern that is used to validate user input at run time and a message to prompt the user to re-enter the password if the format is not a valid pattern. When a user enters a new password, it is compared it to the validation pattern. If the pattern does not match, a message appears.
Tip:
You can dynamically populate a validation pattern message with a value from a data source. This option allows you to ensure that users enter the correct value in the field.
See also 

To specify an input format and validation message