add authenticate user for edit