<inputid="password"type="password"pattern="^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{4,}$"title="Password must have at least characters that include lowercase letters, uppercase letters, numbers and sepcial characters (e.g., !?.,*^)."class="form-control"name="password"placeholder="Enter password"required="required"onchange="if(this.checkValidity()) form.password_two.pattern = this.value;"/>
<inputid="password_two"type="password"pattern="^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{4,}$"title="Password must have at least characters that include lowercase letters, uppercase letters, numbers and sepcial characters"class="form-control"name="confirmpassword"placeholder="Confirm password"required="required"onchange="this.setCustomValidity(this.validity.patternMismatch ? 'Please enter the same Password as above' : '');"/>