This function gets called when a client tries to authenticate through password method.
See Implementation
This function gets called when a client tries to authenticate through password method.