Input address validation

Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1039313

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>