Abstracted login into Provider class, improved drush validation as per Issue #1.