Added device membership models and email confirmation