making the templates depend of logged user