fix adding username constraints under midgard2