Redirects fixed. Chaged admin check to user object