validation added for adding a module