Added User model and authentication with device