made the register plugin heidi-proof