1 of 2

In the USA, who decides who can run for president, the states or the federal government?

From twitter

BREAKING: Maryland is on the verge of passing a law requiring all Presidential candidates to release their past 5 years of tax returns in order to be placed on the election ballot. This means Trump would be required to do so in 2020 if he wants to try & earn Maryland's 10 votes!

Is this likely to hold up in the SCOTUS if it passes? Can states place restrictions on presidential candidacy? Or does ballot access give them a carte blanche to do anything they want?