Added ugliest validation ever + logout