adding/validating keys