added valid user method to db helper