change user.groups=['freelancer'] to user.freelancer