Fix authentication error and use correct naming in input.php