If you have two factor authentication turned on for iCloud, you'll need an App Specific Password, for the password when you're adding an iCloud account to Flo. To get an App Specific Password go to https://appleid.apple.com/
Then scroll down to the security section on the Apple webpage...
Click "Generate Password"
You'll see the password displayed on the Apple website. Enter that password in Flo on your iPhone.