added alert to the else statement.