Adding input check for AP and Donation

Fixes #354