Fixes #1212 Redirect after login issue

Set the current url to the form field.