added check ownership to module authentication