Extract this into a method on the user class.  Reuse it in the ```edit()``` method too.