add id persistence method for user model