login regex: remove an erroneous trailing slash