Acer Aspire 7700 rebooting at login screen

Hi there,
I have an Acer Aspire 7700 which is going off immediately after log in screen shows, I had installed Windows 8 then upgraded to Windows 8.1 when this started happening, sometimes it will work fine, and others it will get stuck on reboot loop, What is the problem ? How do I get this laptop working?
