PHP and MySQLi - Login and logout in php and MySQLi