<label>Login</label>
<form method="POST" action="{{ urlFor('user-login') }}">
    {% if error %}
        <p class="alert alert-danger">Failed to log in.</p>
    {% endif %}
    <div class="form-group">
        <label for="username">Username:</label>
        <input type="text" class="form-control" name="username" autofocus="autofocus">
    </div>
    <div class="form-group">
        <label for="password">Password:</label>
        <input type="password" class="form-control" name="password">
    </div>
    <div class="form-group">
        <input type="submit" class="btn btn-primary" value="Log in">
        <button class="btn btn-link" href="{{ urlFor('user-register') }}">or register now</button>
    </div>
    <input type="hidden" name="redirect" value="{{ getCurrentUrl() }}">
</form>
<label>Login</label>
<form method="POST" action="{{ urlFor('user-login') }}">
    {% if error %}
        <p class="alert alert-danger">Failed to log in.</p>
    {% endif %}
    <div class="form-group">
        <label for="username">Username:</label>
        <input type="text" class="form-control" name="username">
    </div>
    <div class="form-group">
        <label for="password">Password:</label>
        <input type="password" class="form-control" name="password">
    </div>
    <div class="form-group">
        <input type="submit" class="btn btn-primary" value="Log in">
        <button class="btn btn-link" href="{{ urlFor('user-register') }}">or register now</button>
    </div>
    <input type="hidden" name="redirect" value="{{ getCurrentUrl() }}">
</form>
Fix bug in FF where it scrolls to the bottom
Fix bug in FF where it scrolls to the bottom
