saving user details to dynamo db