added edit if authenticated