Add password expiry check

Conflicts:
	doc/CHANGELOG.md
Improve specs for password expiry
Merge pull request #270 from opf/feature/password_expiry_check

Add password expiry check