error handling when user cancels the request for profile