fix redirect login page in delelop mode.