Added IP and MAC validation.