fix some problem on signin function .