Fixed authentication and permission issue.