Added an alert for the first part of the conditional so the user doesn't have to check the console to get the same message.
Added an alert to the else if statement so the user doesn't have to check the console for the same message. Tested the code again to make sure it is still working properly.