Detection and Prevention Against Poisoning Attacks in Federated Learning