Handle password confirmation more generically