Added same condition as AddForm to EditForm