database address validation and ui refactor