handule add and edit user infomation