Updates project id validation

Now throws an error if either the project doesn't exist or if the
project doesn't belong to the current user.