Removed redundant check before redirecting to main site