adding isuser endpoint construction