Migrate LoginController to service usage.