fixes to user.js edit user