authentication code done in class added