The padlock module is designed to limit the functionality of Drupal forms by setting a validation error unless the form is allowed to be submitted in the module configuration.
This lightweight module will stop users from being able to login as user 1 and optionally block the entire "administrator" role. This enforces users to have their own account and more specific roles.