sessionusers.php change

split the error into 2 types of errors and fixed some brackets