Two Factor Authentication sample code