Added success response to registerFlag in FlagController.php