fixed login but
login page now redirects to the page that  referrered it. Formatting fixes