added validations and word wrap