Fixing samba logins code.