change user update action and add test for update action