Creation of DAO and passing of informaiton to check user