Updated Login Dialog. Put in some login checks.