exporting environmental values and genrating the login url