fixed regex for Rails 4

Fixed EMAILREGEX to work in rails 4.