Fixed template and static file references for reg and login pages