metadata and on focus control login