added javascript validations for creating a facebook/twitter post