Takes data from html form and prints the object to console