added if statement for the name input field, it is now required