updating user logic for crud methods