added authentication to external inputs.

Signed-off-by: Miethpo <miethpomail@yahoo.co.uk>