made code required for registration