Introduced boolean data type and used it with new loggedin variable that controls system access.