updated user validation for both create and update
updated tests for update user