added validators to the edit page