set the right ortder if the ruls.py for registration workflow and typo fix