add authentication with signin and edit