Changed add user to group functionality,fixed bugs