why does my macbook restart when it sleeps with the lid open/closed
i need help!! this started a couple weeks ago after i had to restart my password for my login with the built in password reset utility. I used the instructions here http://www.cnet.com/how-to/reset-bypass-password-mac-macbook/. Anyways, after i did that my macbook started resetting randomly... for instance i would be listening to music and it would go on sleep mode (still playing the music nothing wrong) it would be around a minute later and then it would just stop my music and reset quickly then go back to the login screen and i would have to log back in and some dumb question would come up saying "Message Agent wants to use the local items keychain" and it docent go away unless i put in the password. This happens more than 10 times in an hour, pretty much every time i leave it and sleeps. PLEASE HELP!!!
MacBook Air, OS X Mavericks (10.9.5)