added error checking for favorites in profile