Made log in checks server-side; no need for JavaScript