try to finish signin function