handle exception in user profile