add better registration errors