prevent duplication in forms