update cookie and global loginUser if update current user in user maintenance