Working login2so script

Signed-off-by: Graham Chiu <compkarori@gmail.com>