Added correct validation of sshkeys