Add a method to user that does this, doing it in the view is painfuil