implemented front-end validations for events, users, friends input data