Taking user uid as hashcode of loginid