Modified global.js to work with the login, added redirect flag to login which is present on the post thread form