Validates password strentgh.