Added javascript validation for title length