Trim inputs on registration update