Be sure you enter the password for the respective email account, probably not the password from the Mac.
Edit: I just tried, didn't succeed, might be iCloud server problem.
I get this.
The operation couldn’t be completed. (CoreDAVErrorDomain error 1.)