public function postTerm()
	{
		$terminal = Terminal::whereUserId($this->userId())->first();
		$inputs = Input::get('input');

		if (empty($inputs['url'])) {
			$inputs['url'] = '';
		}
		if (empty($inputs['email'])) {
			$inputs['email'] = '';
		}

		$validator = Validator::make(
			$inputs,
			array(
				'url'   => 'url',
				'email' => 'email',
			)
		);

		if ($terminal && $validator->passes()) {
			$terminal->url = $inputs['url'];
			$terminal->email = $inputs['email'];
			$terminal->save();

			return 'ok';
		}

		return 'error';

	}