throw error if no user