Set user in headercontroller

and conditional for mainctrl