Add try catch in UserRightController