refactoring user create , update controller