add record input validation