can this be extracted to a more universal errors partial, instead of coupling to the User object