fixed redirection bugs (some pages were not redirecting correctly),
fixed logout button not working