added authorize post in index.