Fixed an undefined variable user in RegisterController.php