I found the answer, I added them first to group readers and later as authors, it seems the code validates only for the first group the user belongs to. I deleted the user from all groups and then added him to groups author and that solved the issue.
(had to tweak the database directly, but later did it from web gui and worked too, it seems like a little bug).
Omar