fixed incorrectly commented out code
added authentication code and uncommented line that shouldn't have been commented