Updated login in OS X Example to work with new API.