When I'm not logged in and click a 'Mark as Purchased' link from my email, after I log in, the album doesn't get marked as purchased; whereas if I am already logged in, it does.
To fix this, the login page should redirect back to the requested URL post-login.