login redirect double slash fix