Add check for secret key on run