With the 2016 presidential primary approaching, Massachusetts residents with a driver's license or a state ID can apply to register to vote, change their party status or change their address under a new online system state officials announced Tuesday.

The office of William Galvin, the state elections overseer, said Massachusetts is the 21st state to implement online voter registration.

The website is available here.

When an applicant enters in their information, the website will check with the state Registry of Motor Vehicles for verification purposes. If the information can't be verified, the applicant will have to mail in a form to their local elected official.

Applicants who do not have a form of ID with the registry must also mail in the application.

You can register to vote in Massachusetts if you are a U.S. citizen and Bay State resident, you are at least 18 years old on or before the next election, and you are not incarcerated due to a felony conviction.

As of February 2015, Massachusetts has 4,074,155 registered voters.

"The 2016 presidential primary is just eight months away, and this system will make it easier for residents to register to vote," Galvin said in a statement.

The presidential primary in Massachusetts is set for March 1, 2016.

Voting rights groups, which successfully pushed for availability of online voter registration to be included in a 2014 election reform law, hailed its implementation.

"It's a proven reform that will bring Massachusetts into the 21st century and improve voter registration accuracy while increasing opportunities to register to vote," said Pam Wilmot, executive director of Common Cause Massachusetts.

Other states with online voter registration include Arizona, California, New York and South Carolina, according to the National Conference of State Legislatures.