Fixes #5559 not clearing last_forward_from in session if login fails