enh: login logic in wwebui