Can shorten to:
```ruby
def valid_email?(email)
  email =~ /^.*@.*\..*$/
end