adding template function to get login url