login check added for entry editing