Consider possible trailing / in input URL in login view
Some indentation updates