adding unique user id & fixing nullpointer