Added key check authentication