@page "/addPlayer"
@using Blazor.Models

<h3>Add Player</h3>

<EditForm Model="@playerModel" OnValidSubmit="@HandleValidSubmit">
    <DataAnnotationsValidator />
    <ValidationSummary />

    <p>
        <label for="nickname">
            Nickname:
            <InputText id="nickname" @bind-Value="playerModel.Nickname" />
        </label>
        <label for="hashedPassword">
            Password:
            <InputText id="hashedPassword" @bind-Value="playerModel.HashedPassword" />
        </label>
    </p>


    <button type="submit">Submit</button>
</EditForm>