Changed login flow. OAuth is setup but not quite working as expected.