add some UI logic to LoginViewModel