Moved the user name rendering to the controller. It does not seem to work outside in a separate file