Rename the Register function to RegisterController