used fixed error handling on all authenticated actions