<repo_name>lovincyrus/shopify-frontend-challenge<file_sep>/validation.js
document.getElementById("sign-up").addEventListener("click", checkEmail);

function checkEmail() {
	var userInput = document.getElementById("email");
	var interestedIn = document.getElementById("interest");
	var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; 

	if (userInput.value.match(mailformat)) {
	    document.getElementById("form-text").innerHTML = "You have entered a valid email address!";
	    document.getElementById("form-text").style.color = "#7AB55C";
	    console.log(userInput.value);
	    console.log(interestedIn.value);
	} else {
	    document.getElementById("form-text").innerHTML = "Please enter a valid email address!";
	    document.getElementById("form-text").style.color = "#C23628";
	}
}<file_sep>/README.md
# shopify-frontend-challenge
Front End Development challenge 🛍

![screenshot](screenshot.png)

## Demo
> [Demo](https://www.useloom.com/share/eaf0de1b97cf474e825704a4b99654fe)

## Built With
+ HTML
+ CSS
+ Javascript
+ Bootstrap v4.0