Fixed user check in avatar image edit