Final version with an authentification window