added util to check email is valid
added password checks & tests
Merge pull request #1 from Junkey/util-tests

Util tests