UserDao throw-catch fix to catch errors from the controller