color gets removed from input field after being added to favorite