added the console log for the if both the correct password, and name information.