change shared/_error_message partial so can be used with other objects instead of just user.