adds user rights and fixes events form