Fix for issue 1740: switching roles 

The argument for the real user id was not being passed to validate_user correctly.  Because we were using dummy_validate.sh which always returns true, this error was completely masked.
Line is too long. [81/80]