login sample bug fixed