Fixes check for if Secret key is entered