Fixed issue with redirecting to user's homepage