Few changes in leave project code
Added condition to check for owner of the project