Simple function to only allows characters required for an email address which include numbers, letters, @, period and -.