Changes to accept https connections for template
Update in getTokenForm to more properly reflect requirements