Add validate_peer to app