users logic and crud fixed