Catch exception for auth