modified condition to check if user is in the project