edit for set user method in controllers