finish template of login page