Revert "fixed authentication"

This reverts commit a403f517c944dee4448f79342541acefe1c95cf2.