refactor lambdas to try catch blocks in users controller actions