added password and email fields