added error message for post title less than 5 characters