added error window. basically just a few codes that allow a message to pop up and tell the user that he's done something wrong.