function add() { if(empty($this->data)) { $this->set('login', null); } else { $this->cleanUpFields(); if($this->Login->save($this->data)) { if(is_object($this->Session)) { $this->Session->setFlash('The Login has been saved'); $this->redirect('/login/index'); } else { $this->flash('Login saved.', '/login/index'); } } else { if(is_object($this->Session)) { $this->Session->setFlash('Please correct er