added popup for login.  Commented out for testing purposes
hooked switch up to checkboxes