Added validation for edit and add page. Additional regex check for all entries.