logging in, headers and footers