added error handling
intercept non admin / non authenticated
Merge pull request #1 from iros/error-handling

added error handling