opt login workflow