Validation class and preferences object

This commit contains the preferences class for creating object for the
validation class, this commit is also to test if there is a conection