code refactor

- fix is list empty
fix on table

- add behavior remove double code
fix display table behavior
reformat code

- add pattern
- add table chars
- fix display table if is list is empty
refactor code

- password, username can not be empty
- baseUrl allowed now http://localhost:9200
- server name allowed digits
refactor to new behavior
add behavior to code
rearange code