fix login page redirect error