Small refactoring
add properties to LoginDialog