Handled authentication denied scneario. Support for iPhone.