added authenticate API
updated authenticate api on websockets