Added subdomain check and user pages