fixed reference to user field in registration