CLOUD-210 validate public key
CLOUD-210 some change based on the review
Merge pull request #280 from sequenceiq/validate-public-key

CLOUD-210 validate public key