<form class="user" method="POST" action="{{ url('login') }}?next={{next_url}}">
{{ csrf_token()|raw }}
<div class="form-group">
<input type="email" name="email" required="required" id="email" aria-describedby="emailHelp" placeholder="{{ _('Enter Email Address...') }}">
</div>
<div class="form-group">
<input type="password" name="password" required="required" autocomplete="false" id="password" placeholder="{{ _('Password') }}">
</div>
<button type="submit">
{{_("Login")}}
</button>
</form>
I need to add a button for register (example.com/register) below the login button. But when I add that when the user clicks on the Register button, It says that Email and password fields are required. How to resolve this issue?
Register button code: <button href="{{ url('register') }}">{{_("Create an Account!")}}</button>