Password confirmation - add to DB Schema? (Example) - Treehouse
By requiring you to type it twice, the system uses a mathematical comparison to ensure both entries match. If they don't, the system alerts you immediately, forcing a correction before the "wrong" password is saved to the database. When Password Confirmation is Used Password confirmation
The "Confirm Password" field is a classic application of —specifically, error prevention. Password confirmation - add to DB Schema