[AlphaUsers BugFix] Fixed login form to still work even when there is no ?ref in the URL.