fixing message registration / validation