Updated login sample usage