Fixed dialog validation using keyboard