Refactoring and fixing a bug in the protocol form

- Members field are now validated properly