added verification of username, password, organization

previously the entire script ran for 10 minutes even though the password was wrong.
this adds a check so that it exists quickly on failure