fixed accounts and added template to header

also fixed positioning of login box so it shows fully on the page