added check if entered words have the same length