added validations for empty fields