Added login validation to database
now with the new classes to support db interaction