refine login block register commands