added account id validity checking function