Fix login for dev vs prod issue