Configuring maximum number of password attempts