Updating the condition for checking useSSL