Added validation for email
Fixed rubocop errors