title: Laravel authentication form issue (redirects to home before showing register page)
body: <p>I'm new to laravel, and I'm making a website as my software development project on laravel 5.1. I'm stuck at the authentication form. I tried using the sample register and login form provided in laravel documentation and it worked all right. But when I replaced it with my own designed form, It redirects to home page and doesn't show the register page at all. My form -</p>
  
  <pre><code>@extends('layouts.master')
  
  @section('title')
      Personal Health Assistant: Home
  
  @endsection
  
  @section('head')
  &lt;script&gt;
      $(function() {
  
      $('#login-form-link').click(function(e) {
          $("#login-form").delay(100).fadeIn(100);
          $("#register-form").fadeOut(100);
          $('#register-form-link').removeClass('active');
          $(this).addClass('active');
          e.preventDefault();
      });
      $('#register-form-link').click(function(e) {
          $("#register-form").delay(100).fadeIn(100);
          $("#login-form").fadeOut(100);
          $('#login-form-link').removeClass('active');
          $(this).addClass('active');
          e.preventDefault();
      });
  
  });
  &lt;/script&gt;
  
  @endsection
  
  @section('content')
  &lt;div style="height: 100px"&gt;&lt;/div&gt;
  &lt;div class="container"&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-md-6 col-md-offset-3"&gt;
                  &lt;div class="panel panel-login"&gt;
                      &lt;div class="panel-heading"&gt;
                          &lt;div class="row"&gt;
                              &lt;div class="col-xs-6"&gt;
                                  &lt;a href="#"  id="login-form-link"&gt;Login&lt;/a&gt;
                              &lt;/div&gt;
                              &lt;div class="col-xs-6"&gt;
                                  &lt;a href="#" class="active" id="register-form-link"&gt;Register&lt;/a&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;hr&gt;
                      &lt;/div&gt;
                      &lt;div class="panel-body"&gt;
                          &lt;div class="row"&gt;
                              &lt;div class="col-lg-12"&gt;
                                  &lt;form id="login-form" action="/auth/login" method="POST" role="form" style="display: none;"&gt;
                                      &lt;div class="form-group"&gt;
                                          &lt;input type="email" name="email" id="email" tabindex="1" class="form-control" placeholder="email" value="{{ old('email') }}"&gt;
                                      &lt;/div&gt;
                                      &lt;div class="form-group"&gt;
                                          &lt;input type="password" name="password" id="password" tabindex="2" class="form-control" placeholder="Password"&gt;
                                      &lt;/div&gt;
                                      &lt;div class="form-group text-center"&gt;
                                          &lt;input type="checkbox" tabindex="3" class="" name="remember" id="remember"&gt;
                                          &lt;label for="remember"&gt; Remember Me&lt;/label&gt;
                                      &lt;/div&gt;
                                      &lt;div class="form-group"&gt;
                                          &lt;div class="row"&gt;
                                              &lt;div class="col-sm-6 col-sm-offset-3"&gt;
                                                  &lt;input type="submit" name="login-submit" id="login-submit" tabindex="4" class="form-control btn btn-login" value="Log In"&gt;
                                              &lt;/div&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                      &lt;div class="form-group"&gt;
                                          &lt;div class="row"&gt;
                                              &lt;div class="col-lg-12"&gt;
                                                  &lt;div class="text-center"&gt;
                                                      &lt;a href="" tabindex="5" class="forgot-password"&gt;Forgot Password?&lt;/a&gt;
                                                  &lt;/div&gt;
                                              &lt;/div&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/form&gt;
                                  &lt;form id="register-form" action="/auth/register" method="POST" role="form" style="display: block;"&gt;
                                      {!! csrf_field() !!}
                                      &lt;div class="form-group"&gt;
                                          &lt;input type="text" name="name" id="username" tabindex="1" class="form-control" placeholder="Username" value="{{ old('name') }}"&gt;
                                      &lt;/div&gt;
                                      &lt;div class="form-group"&gt;
                                          &lt;input type="email" name="email" id="email" tabindex="1" class="form-control" placeholder="Email Address" value="{{ old('email') }}"&gt;
                                      &lt;/div&gt;
                                      &lt;div class="form-group"&gt;
                                          &lt;input type="password" name="password" id="password" tabindex="2" class="form-control" placeholder="Password"&gt;
                                      &lt;/div&gt;
                                      &lt;div class="form-group"&gt;
                                          &lt;input type="password" name="password_confirmation" id="confirm-password" tabindex="2" class="form-control" placeholder="Confirm Password"&gt;
                                      &lt;/div&gt;
                                      &lt;div class="form-group"&gt;
                                          &lt;div class="row"&gt;
                                              &lt;div class="col-sm-6 col-sm-offset-3"&gt;
                                                  &lt;input type="submit" name="register-submit" id="register-submit" tabindex="4" class="form-control btn btn-register" value="Register Now"&gt;
                                              &lt;/div&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/form&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
  @endsection
  </code></pre>
  
  <p>My route file-</p>
  
  <pre><code>&lt;?php
  
  
  Route::get('/', function () {
      return view('welcome');
  });
  
  Route::get('/home', function () {
      return view('welcome');
  });
  
  Route::get('/symptomchecker', function () {
      return view('pages.symptomchecker');
  });
  // Authentication routes...
  Route::get('auth/login', 'Auth\AuthController@getLogin');
  Route::post('auth/login', 'Auth\AuthController@postLogin');
  Route::get('auth/logout', 'Auth\AuthController@getLogout');
  
  // Registration routes...
  Route::get('auth/register', 'Auth\AuthController@getRegister');
  Route::post('auth/register', 'Auth\AuthController@postRegister');
  
  /*Route::get('/login', function () {
      return view('pages.login');
  });
  
  Route::get('/signup', function () {
      return view('pages.signup');
  });*/
  
  Route::get('/consult-doc', function () {
      return view('pages.consult');
  });
  
  });
  </code></pre>