Obama maternity leave
U.S. President Barack Obama has lunch at Chipotle Restaurant with working moms Lisa Rumain (L) and Shelby Ramirez (R) before he attends the White House Summit on Working Families in Washington, June 23, 2014. Reuters

"Right now, if you’re pregnant, you could potentially get fired for taking too many bathroom breaks -- clearly from a boss who has never been pregnant," President Barack Obama said on Monday.

At the first White House Summit on Working Families, President Obama called on Congress to pass legislation to protect pregnant women in the workplace.

The president urged lawmakers to vote on the Pregnant Workers Fairness Act, which was introduced in May 2013. While discrimination against pregnant women has been illegal according to federal law for almost 36 years, advocates say that law is full of loopholes and in need of overhaul. The number of complaints rose significantly in the last 20 years, according to the Equal Employment Opportunity Commission, the federal agency that enforces employee rights in the workplace.

Currently, the laws that define and prohibit discrimination vary from state to state. Check out this map: