prevent from pressing digits without alphabets and spaces

HTML

<form action="...">

<input name="username" id="username" type="text" 
    pattern="[A-Za-z ]*" title="Latin letters and space characters only">

<input type="submit">
</form>