fixed post working on authenticate