Corrected regexp for e-mail to include dots in username
Fixed mirroring logic