moved validateEmail to static method in DBMethods