Do not allow leading or trailing dot(.) in the first part of email address

Add rspec for email validator

Fixes #5483