add validations

why is the function name changed from "createTodo" to "createtodo" ?