Here's a preflight check to collect and verify app store credentials.

It uses mechanize to verify by logging into appleid.apple.com.