/**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     $formData = Input::only('email', 'password');
     $this->signInForm->validate($formData);
     if (!Auth::attempt($formData)) {
         Flash::message('We were unable to sign you in. Please check your credentials and try again!');
         return Redirect::back()->withInput();
     }
     Flash::message('Welcome back!');
     return Redirect::intended('statuses');
 }
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     // fetch form input
     $formData = Input::only('email', 'password');
     // validate form
     $this->signInForm->validate($formData);
     // if invalid, go back
     if (!Auth::attempt($formData)) {
         //redirect to status
         Flash::message('Invalid Credentials');
         return Redirect::back()->withInput();
     }
     // we valid
     Flash::message('Welcome back!');
     return Redirect::to('statuses');
 }