adding new function to get login url