Constructor injection

Referencing the setLoginFormUrl method is deprecated in favor of using constructor injection.