Avoid getlogin for security related purposes.