Added security onto insert