Added ability to login using different auth flows