Added 'next' parameter to query string for logins.