Thanks for the reply!
I have followed the instructions from the repository at https://github.com/skycocker/NameAndPassword and configured it using security authorizationdb write system.login.screensaver, but it's not working. Please let me know where I should configure it.
Let me know if you need any further adjustments!