Use EmbedPrompt pref properly, added input test, fixed warning