bug 1192: fixed sprintf statement
bug 1192: moved the CCA check to the loggedin.php file