title: Laravel 5.2 redirect if the user entered wrong Email or password
body: <p>I am using <strong>Laravel 5.2</strong> and I am using the default login controller.
  I know how to redirect the user if the user logged in successfully but I don't know how to redirect him if he didn't enter the email or password correctly.</p>
  
  <p>Here is the controller code</p>
  
  <pre><code>class AuthController extends Controller
  {
  
  
      use AuthenticatesAndRegistersUsers, ThrottlesLogins;
  
  
      protected $redirectTo = '/';
  
  
      public function __construct()
      {
          $this-&gt;middleware($this-&gt;guestMiddleware(), ['except' =&gt; 'getLogout']);
      }
  
  
      protected function validator(array $data)
      {
          return Validator::make($data, [
              'name' =&gt; 'required|max:255',
              'email' =&gt; 'required|email|max:255|unique:users',
              'password' =&gt; 'required|min:6|confirmed',
          ]);
      }
  
  
      protected function create(array $data)
      {
          return User::create([
              'name' =&gt; $data['name'],
              'email' =&gt; $data['email'],
              'password' =&gt; bcrypt($data['password']),
          ]);
      }
  }
  </code></pre>
  
  <p>Where should I enter the redirect code?</p>