consider following examples example to validate password which have following rules
1. the password must be at least 8 characters long.
2. Password start and end with a letter.
1. the password length doesn't matter.
2. password must contain at least 1 number, at least 1 lower case letter, and at least 1 upper case letter.