The notion of password confirmation is not to save two hashed versions of the user's password in the database; instead, it is to ensure that the user knows what they have entered - by making them repeat the same password. You ensure this by validating that the password_confirmation field matches the password field - using the confirmed validation rule as both @lostdreamer_nl and I have described above.
Just use the validation and persist the hashed password whenever validation passes!