added login prompt and disable edit button