loginpage_hook added