Preserve post-login redirect (next) parameter

fixes #3