Fixed odd redirect login mechanism

Redirect login on child pages redirected  page loaded into content div
tag, making login page appear under index.
Login redirect has been altered to a specific method using JS echoed in
PHP redirectLogin() function