add vailidation to ensure title are specified when creating a post