`Makes sure that parameters are valid before saving them.`