Added error case for when requiring a token fails