check text boxes for proper values