Added error handling for nil user object in auth.
Merge pull request #226 from jaredbischof/master

Added error handling for nil user object in auth.