Update step_3.php

1. add validation for confirm password fields
2. only try to connect to database when database validation is true