Check PZP mode before starts Peer discovery process

Jira Issue: WP-776
Indention correction

Jira Issue: WP-776
Merge pull request #536 from ziransun/Peer-discovery-page

Check PZP mode before starting Peer Discovery