adding some comments to the password validator
adding the password validation logic and a simple unit test