changed how the logging in modal works