Made basic key validation