validate key with environment available