Updated LoginFormFactory to inject the CommonOptions object into it