added better error object from user:register