fixing CRUD operation for user