improved error handling in authentication step