Add LoginController class and implement login information JSON converting.