Added authentication (NOT WORKING CORRECTLY)