error messages are published when registering

if user registers incorrectly