add metadata check on login
Merge pull request #10 from beck24/whitelist-and-other-improvements

Adds optional metadata check on login