little fix in legacy user creation func