added Tests and validation for name and email and added password digest to model