checking if project exists before setting its permissions for user access