Fixing login route bug

Null ref to url