Fix when user doesn't have valid keys.

Fix when user doesn't have valid keys.