Adding needed methods to user model.