Input address validation

Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1039313

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Merge pull request #15 from ignatenkobrain/check_addr

Input address validation