I have a problem.

When I installed Windows 10, during the Cortana setup process I was told to log in with my Microsoft account. When she brought up the window, everything but the minimize tab was gray and closed after 15 seconds. This happens every time and it also happens when I am trying to log in from the account settings or any other way to log into Microsoft on my PC. Works on Chrome, but not Edge. Any help??