adding occurances and validate email functions