Determine if inputs are valid when they are typed