added validation with the help of Jonathan
Merge branch 'master' of https://github.com/colinambrose/hca-ui.git