seperate authentication code