updated authentication code againn haha