logs in users using client side flow on dev. uses server side flow on production.