added js validations for attend modal