Added handling for unauthorized response received from server.

It will clear application data, and will redirect user to the Login view.