Validate the text fields on the edit page to improve the UX and avoid unexpected data in the database.