refactrored the users controller and corrected mistake in wagers controller.