catch error on credentials