fix some inconsistencies of register user