Fix class error for password confirmation validation