Adds validation for title