Changed login to set a cookie on success.
Used cookie to set user links in header.