Add backward compatibility for passwords and paste password dialog