To catch exception in profile update