Added more helpful message when no state parameter is given