oauth and User authentication working