added api for editing the user