Added an escape (/) for the dot (.) in e-mail pattern: r'^[\w.-]+@[\w-]+\.[\w.]+$'. The bug causes username@company to be accepted, which should not.