You first need to log into the phone with your email username and password.
1. Tap Sign In
2. Tap Web Sign-In
4.Enter your email address into the field. Click Verify Email
5. Log in to Office365
6. Enter the code on your phone screen into this field.