fix a bug in project memberships controller; downcase api key