/**
  * @param BaseForm $form
  */
 public function processSignInForm(BaseForm $form)
 {
     $values = $form->getValues();
     $this->getUser()->setExpiration('+ 20 minutes', TRUE);
     try {
         $this->getUser()->login($values->email, $values->password);
     } catch (Nette\Security\AuthenticationException $e) {
         $form->addError($e->getMessage());
         return;
     }
     $this->redirect('Homepage:');
 }