Fix login issue due to trailing slash