on response method written for ProfileActivity class