This is the password example

I will hash the password twice, and verify one against the other
$2y$10$BpF8tmdmFpqkRpmzyIcqAOQISIJPsbMJpGZFtAZT9izdi7ZUOhTAa
$2y$10$BsOQNuYjKrE1G8/FcU.s4eAsLRHtBvwpcCV1h0OEoxo40OQdXpyuK
passwords match
incorrect password
To require a decent password, you can use a pattern, such as this one from w3schools
<input type="password" name="psw" 
pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}" 
title="Must contain at least one number and one uppercase and lowercase letter, 
and at least 8 or more characters" required>