Added check to see if secret key is empty before outputting the button