Fixed an undefined variable in the RegisterController