Add error checking to articles form