Added basic input sanitation