Added error for invalid content
Added error for no pages available