adding try catch around retrieving the user