update login layout and a self placement bug