Perhaps you want to set a min property on password and username length, and you should definitely make them required on the form inputs. code example
Example: minmax length password
<label for="password">Password:</label>
<input id="password" type="password" pattern=".{5,10}" required title="5 to 10 characters">