added validation to the ingredients and directions input fields