registration validations and routing