Handling user Input cases.