LPS-12345 Source formatting and moving logic to PwdAuthenticator

Hi Zsolt,

I source formatted the code (as far as I could) and moved the logic to a more appropriate class.

Could you please check it out?

Thanks,
Zoli