Implement methods to check if TFA is enabled and secret key is valid

Check if TFA is enabled and secret key is valid directly in KunenaLogin Class instead to need to duplicate this code in some places, for PR https://github.com/Kunena/Kunena-Forum/pull/2447 and https://github.com/Kunena/Kunena-Forum/pull/2440