There are many ways to fix this. I will list the methods you should do in order to help.
Method 1: Boot in Safe Mode
1. Shut down your computer completely
2. Wait 10 seconds
3. Boot up your computer and press and hold shift as soon as you hear the chime
4. You can release the shift button when you hear the chime again.
5. Your problem should be fixed, and if there are on-screen instructions, then just follow them.
Method 2: Use Internet Recovery
1. Shut down your computer completely
2. Wait 10 seconds
3. Boot up your computer and the and hold Option while booting
4. Release when you see a few item pop up on the screen.
5. Select a Network and press the arrow button
6. Your problem should be solved, and if there are on-screen instructions, follow them until it is booted up
Method 3: Resetting the NVRAM
1. NVRAM (Non-Volatile Random Access Memory) are sometimes responsible for random bugs.
2. Shut down your computer completely
3. Wait 10 seconds
4. Boot up and Press Command-Option-P-R
5. When the proper screen pops up, release and follow instructions (Wait for second chime to release)
Method 4: Recovery Mode
1. If none else works, reset your computer, and later you can restore your backed up info.
2. Shut down your computer completely
3. Hold down Command-R while booting
4. Follow on-screen instructions to reset.
Hope this helped you out!
-J