fix url issue when user credentials isnt inputted