Refactor LoginViewController.java