Use getpwuid(getuid())
Simplify getlogin()