fix bug in popup model admins when validation errors exist