Improved log message in case of wrong regcode