Added error handling for some authentication failure cases