Check password lengths

Check the length of the passwords supplied.