Adding Rest API to check if title exists