Authentication bug fixed