With preventDefault(event) you can prevent app from showing this empty page
You also need to pass event to function call
But why this heppend when you type name, and why your radio validation dont work. Your form become valid only when name is valid, because you use return in your code.
Every return will happend after some case (if is true), you set return true if name match regex, even if you change this to false, your code wont work.
Everything after this line wont ever run, when code reach return it exit from function or block of code.
How to solve? Well you can add variable to check is general form valid, than give 1 return true at the end, if this variable is true.
Return false is fine, because you dont wanna submit form.
edit: but it is better practice to show users all invalid data at once, than to do one by one.
So you can return false only once also.