updated user system, started permission system