Corrected script import for newly renamed register functionality and fixed homepage redirect for headers