added error reporting to ucm_register.module