Adding code to handle optional validation + placeholder text.