setting up registerController