apppreferences update added userid to user class