username/nickname check and proper logout