creating user adapter