fix format bug, fix login window position