Constrained matchings in bipartite graphs