add user and name attributes to navbar directive