add error handling before save the users input #64