Updating logic for local Drupal login