refine startup,sign,login