added validation for edit page
Merge branch 'rc4' of github.com:WSO2Mobile/mam into rc4