Fix alerts. Add validation.