Adding registraion and rules