adds conditionals to prevent adding to pallete if input values are blank