Add getName() function to User model.

I plan to change the name of the field later, and I do not want to change many parts of the source code.