Connected diary to backend server in order to save text