added js validations
deactivated flash for ajax, and added js validations