Check these 3 things before getting so frustrated.
So simple!
Let me give you an example which explains all those things.
<form>
<div>
<label for="id">ID</label>
<input id="id" required />
</div>
<div>
<label for="password">ID</label>
<input id="password" required />
</div>
<button type="submit">Submit</button>
</form>
These should solve most of problems!
Hope it's been helpful.
See ya! :)