function create()
 {
     $params = $_POST;
     if ($params['password'] == $params['password_confirmation']) {
         $params['encrypted_password'] = crypt($params['password'], User::SALT);
     }
     $id = User::create($params, $_FILES);
     Router::redirect_to('user', 'profile', array('id' => $id));
 }