A Louisiana man pleaded guilty in federal court Monday to using President Trump’s Social Security number in several failed attempts to get Trump's federal tax information ahead of the 2016 election.

Jordan Hamlett, a 32-year-old private investigator, tried unsuccessfully to get Trump’s tax information by using a financial aid website from the Department of Education, according to the Associated Press.

Hamlett, of Lafayette, used the president’s Social Security number and other information to start an application for federal student aid in September 2016, according to court documents. He received a username and password, and then attempted to use a data retrieval tool from the Internal Revenue Service to get Trump’s federal tax information.

The Louisiana man tried to access the tax information from IRS servers six times but failed each time.

Hamlett was indicted in November 2016 and faces five years in prison and a $250,000 fine.

Michael Fiser, Hamlett’s lawyer, said Hamlett didn’t have any “intent to deceive,” but rather decided to mount the scheme “out of sheer curiosity” to see if he could use a government website to access Trump’s federal tax information.

Unlike his predecessors, Trump has declined to release his tax returns.