Check if new keys being set are the correct length, since longer or shorter keys yield inconsistant results
add an error message for wrong key length