aded validations to policy input
Merge branch 'beta2' of github.com:WSO2Mobile/mdm into beta2