“Declaration or statement expected” Error on else operator nested in if statement [closed]

Just starting to learn javascript and working through some practice exercises in an online course. The last exercise is setting up a simple login prompt using if statements and logical operators like OR. I receive an error when inputting the else statements.
Here is the code

I am really not sure why the else statements are giving this error. I believe I have nested everything properly and am using the right brackets after each operator.