laget validate-metode for email