Implement restricted logins

This is useful for times when you want to control the access to your shard. For example, immediately after an update.