could not retrieve user due to null type