created and modified registration controller