added validations in add community