fixed https://github.com/shekhargulati/milestogo/issues/80. Setting logged in user in the html rendered by the server. this is a recommended solution