make sure users exist in ajax requests
fix javascript errors