added config file for db uri and host parameters (closes #5)
added email validation (fixes #4)