Fix for issue 21

As discussed, here is the pull request that will fix issue 21. 

Problem and solution were discussed with Dave and Hitesh on this stackoverflow page:

http://stackoverflow.com/questions/15161969/error-running-uaa-login-rb-sample


Thanks,
John