add, complete test code, validation code for update_user