I have been looking at this code over and over again now and I just cannot figure out where I went wrong.

This formval function is actually longer but this is the first 'check' it does for the first input tag I have.
The next check it does works perfectly.
The only difference between them is that this one checks for letters and the other one checks for numbers.

function formval() {
  var letters = /^[a-zA-Z]+$/;
  if (document.getElementById('name').value.match(letters)) {
    return true;
  else {
    alert('Please fill in your name');
    return false;
Which belong to:

HTML Code:
<input type="text" name="Name: " id="name">