Added messages for registration errors.