Adds query string to links in login and logout form