LPS-12345 Source formatting and moving logic to PwdAuthenticator