if by any chance user is null then reload webpage (but it should never happen) See merge request !1025