fix some bugs and make the first user a super_user